package study.day5.t10;

import java.util.Scanner;

public class T10 {
    public static void main(String[] args) {
        System.out.println("请输入第一个操作数：");
        Scanner input=new Scanner(System.in);
        int num1 = input.nextInt();
        System.out.println("请输入第二个操作数：");
        int num2 = input.nextInt();
        Calculator[] cal={new addCalculator(),new subCalculator(),new mulCalculator(),new divCalculator()};
        for(Calculator calc:cal){
            double result = calc.calc(num1, num2);
            System.out.println(result);
        }
    }
}
